﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Domain.Services;
using Zeus.Thunder.Core;

namespace SharpTrainer.Other
{
    class GetResponseFromUrl : ITestCase
    {
        public void Run()
        {
            string url = "http://182.50.114.49:7080/fare/FareQuery.html?journey=OW&org1=PEK&dst1=SEA&outDate1=2012-04-13&fareCurrCode=CNY&currentUserDistId=40288081360a03e901360a0a56bc003f&sign=ABA869FF393705FFD82DD41E9452117D";

            GtaService service = new GtaService(url);

            Console.WriteLine("GTA返回的报价JSON数据:");
            Console.WriteLine(service.FareQuery());
        }
    }
}
